package a233.最便宜的礼物寄送;

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc =  new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int index[][] = new int[x][3];
        for (int m =0;m<x;m++){
            index[m][0] = sc.nextInt();
            index[m][1] = sc.nextInt();
            index[m][2] = index[m][1]-index[m][2];
        }


    }
}
